package cn.yunyichina.provider.bone.aspect;

import org.aspectj.lang.JoinPoint;

/**
 * @Author: admin
 * @Description: aop
 */
 abstract class AbstractAspect {

    protected String tips(String msg) {
        return "  ================================  " + msg + "  ===  ";
    }

    private String getClassName(JoinPoint jp) {
        return jp.getTarget().getClass().getName();
    }

    private String getMethodName(JoinPoint jp) {
        return jp.getSignature().getName();
    }

     String getClassAndMethod(JoinPoint jp) {
        return getClassName(jp) + "." + getMethodName(jp);
    }
}
